mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-06-13 12:54:14 +00:00
DownloadCentral: Hide outdated wikis in Imported table
This commit is contained in:
parent
a5bdc07406
commit
0fb6fea11a
@ -31,4 +31,5 @@ public class Xobc_task_regy_itm {
|
||||
public int Step_count() {return step_count;} private final int step_count;
|
||||
|
||||
public static final String Type__text = "text", Type__html = "html", Type__file = "file";
|
||||
public static final int Seqn__obsolete = 999999;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ public class Xobc_task_regy_tbl implements Db_tbl {
|
||||
try {
|
||||
while (rdr.Move_next()) {
|
||||
int task_seqn = rdr.Read_int(fld_task_seqn);
|
||||
if (task_seqn == 999999) continue; // WORKAROUND: do not show old tasks; should add a status column, but don't want to change schema yet; DATE:2016-10-20
|
||||
if (task_seqn == Xobc_task_regy_itm.Seqn__obsolete) continue; // WORKAROUND: do not show old tasks; should add a status column, but don't want to change schema yet; DATE:2016-10-20
|
||||
|
||||
int task_id = rdr.Read_int(fld_task_id);
|
||||
int step_count = rdr.Read_int(fld_step_count);
|
||||
|
@ -48,6 +48,7 @@ public class Xobc_done_task_tbl implements Db_tbl {
|
||||
while (rdr.Move_next()) {
|
||||
int task_id = rdr.Read_int(fld_task_id);
|
||||
int task_seqn = rdr.Read_int(fld_task_seqn);
|
||||
if (task_seqn == gplx.xowa.addons.bldrs.centrals.dbs.datas.Xobc_task_regy_itm.Seqn__obsolete) continue; // WORKAROUND: do not show old tasks; should add a status column, but don't want to change schema yet; DATE:2016-11-03
|
||||
Xobc_task_itm itm = (Xobc_task_itm)todo_regy.Get_by(task_id);
|
||||
if (itm == null) {
|
||||
Gfo_log_.Instance.Warn("task exists in done, but not in todo", "task_id", task_id);
|
||||
|
Loading…
Reference in New Issue
Block a user