mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
do less writes
This commit is contained in:
parent
f7b60ec87d
commit
e9049b922a
|
@ -41,7 +41,7 @@ settings = src.configloader.settings
|
|||
_ = rcgcdw.gettext
|
||||
ngettext = rcgcdw.ngettext
|
||||
|
||||
TESTING = command_args.test # debug mode, pipeline testing
|
||||
TESTING = command_args.test # debug mode, pipeline testing
|
||||
AUTO_SUPPRESSION_ENABLED = settings.get("auto_suppression", {"enabled": False}).get("enabled")
|
||||
|
||||
if AUTO_SUPPRESSION_ENABLED:
|
||||
|
|
|
@ -108,8 +108,8 @@ class Wiki(object):
|
|||
last_check = self.fetch_changes(amount=amount)
|
||||
if last_check is not None:
|
||||
if settings["limitrefetch"] != -1:
|
||||
storage["rcid"] = last_check[0] if last_check[0] else storage["rcid"]
|
||||
storage["abuse_log_id"] = last_check[1] if last_check[1] else storage["abuse_log_id"]
|
||||
storage["rcid"] = last_check[0] if last_check[0] and last_check[0] != storage["rcid"] else storage["rcid"]
|
||||
storage["abuse_log_id"] = last_check[1] if last_check[1] and last_check[1] != storage["abuse_log_id"] else storage["abuse_log_id"]
|
||||
storage.save_datafile()
|
||||
else:
|
||||
self.memory_id = last_check
|
||||
|
|
Loading…
Reference in a new issue