mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-12 04:25:19 -05:00
split ignore_private into two keys (separate battles/jobs) (#104)
This commit is contained in:
8
s3s.py
8
s3s.py
@@ -11,7 +11,7 @@ import msgpack
|
||||
from packaging import version
|
||||
import iksm, utils
|
||||
|
||||
A_VERSION = "0.3.0"
|
||||
A_VERSION = "0.3.1"
|
||||
|
||||
DEBUG = False
|
||||
|
||||
@@ -1171,8 +1171,8 @@ def post_result(data, ismonitoring, isblackout, istestrun, overview_data=None):
|
||||
continue
|
||||
|
||||
# should have been taken care of in fetch_json() but just in case...
|
||||
if payload.get("lobby") == "private" and utils.custom_key_exists("ignore_private", CONFIG_DATA) or \
|
||||
payload.get("private") == "yes" and utils.custom_key_exists("ignore_private", CONFIG_DATA): # SR version
|
||||
if payload.get("lobby") == "privatƒe" and utils.custom_key_exists("ignore_private", CONFIG_DATA) or \
|
||||
payload.get("private") == "yes" and utils.custom_key_exists("ignore_private_jobs", CONFIG_DATA): # SR version
|
||||
continue
|
||||
|
||||
s3s_values = {'agent': '\u0073\u0033\u0073', 'agent_version': f'v{A_VERSION}'} # lol
|
||||
@@ -1492,7 +1492,7 @@ def check_for_new_results(which, cached_battles, cached_jobs, battle_wins, battl
|
||||
result = json.loads(result_post.text)
|
||||
|
||||
if result["data"]["coopHistoryDetail"]["jobPoint"] == None \
|
||||
and utils.custom_key_exists("ignore_private", CONFIG_DATA): # works pre- and post-2.0.0
|
||||
and utils.custom_key_exists("ignore_private_jobs", CONFIG_DATA): # works pre- and post-2.0.0
|
||||
pass
|
||||
else:
|
||||
foundany = True
|
||||
|
||||
Reference in New Issue
Block a user