mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
ParserFunctions: Change {{NUMBEROFPAGES}} to read from site_stats.ss_total_pages and {{NUMBEROFARTICLES}} to read from site_stats.ss_good_articles
This commit is contained in:
parent
7e5af96548
commit
88332f68a2
@ -32,7 +32,7 @@ public class Xoa_app_ {
|
||||
}
|
||||
}
|
||||
public static final String Name = "xowa";
|
||||
public static final String Version = "3.10.4.6";
|
||||
public static final String Version = "3.10.4.7";
|
||||
public static String Build_date = "2012-12-30 00:00:00";
|
||||
public static String Op_sys_str;
|
||||
public static String User_agent = "";
|
||||
|
@ -43,8 +43,8 @@ public class Xowd_site_stats_tbl implements Db_tbl {
|
||||
try {
|
||||
if (rdr.Move_next()) {
|
||||
stats.Load_by_db
|
||||
( rdr.Read_long(fld_good_articles)
|
||||
, rdr.Read_long(fld_total_pages)
|
||||
( rdr.Read_long(fld_total_pages)
|
||||
, rdr.Read_long(fld_good_articles)
|
||||
, rdr.Read_int(fld_images)
|
||||
, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ public class Wdata_prop_val_visitor implements Wbase_claim_visitor {
|
||||
|
||||
// output unit
|
||||
int unit_qid_bgn = Bry_find_.Find_fwd(unit, Wikidata_url);
|
||||
if (unit_qid_bgn == Bry_find_.Not_found) {} // entity missing; just output unit literally; EX:"unit":"1"; PAGE:en.w:Malinao,_Aklan DATE:2016-11-08
|
||||
if (unit_qid_bgn == Bry_find_.Not_found) {} // entity missing; output nothing; EX:"unit":"1"; PAGE:en.w:Malinao,_Aklan DATE:2016-11-08
|
||||
else { // entity exists; EX:"http://www.wikidata.org/entity/Q11573" (meter)
|
||||
bfr.Add_byte_space();
|
||||
byte[] xid = Bry_.Mid(unit, Wikidata_url.length);
|
||||
|
Loading…
Reference in New Issue
Block a user