From 217a2c1f2fa39208c6802e53212d5720adc23ad0 Mon Sep 17 00:00:00 2001 From: Gerni <47844854+mgerni@users.noreply.github.com> Date: Tue, 27 May 2025 20:30:51 -0400 Subject: [PATCH] fix pets v2 --- task_database.py | 11 +++-------- tasks/medium.json | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/task_database.py b/task_database.py index 307056a..a48ea5e 100644 --- a/task_database.py +++ b/task_database.py @@ -545,17 +545,11 @@ def get_task_lists(username): for id in completed_otherPet_ids: if other_pet_task.id == id['taskId']: other_pet_task.isCompleted = True - else: - other_pet_task.isCompleted = False + otherPets.append(other_pet_task) return bossPets, tasklists.skill_pet, tasklists.other_pet - bossPets = list() - for task in tasklists.boss_pet: - task_data = TaskData() - # bossPets = list(map(lambda x: x['taskId'], task_list_query['tiers']['bossPets']['completedTasks'])) - print(bossPets) # task_query_easy = coll.find({'username': username}, {'easyTasks': 1}) # task_query_medium = coll.find({'username': username}, {'mediumTasks': 1}) # task_query_hard = coll.find({'username': username}, {'hardTasks': 1}) @@ -1422,6 +1416,7 @@ def fix_gerni(): # } # ) if __name__ == "__main__": - fix_gerni() + get_task_lists('GerniSleep') + # fix_gerni() # get_task_lists('GerniSleep') pass diff --git a/tasks/medium.json b/tasks/medium.json index 0aca3be..61787d3 100644 --- a/tasks/medium.json +++ b/tasks/medium.json @@ -11121,7 +11121,7 @@ "_id": 119, "name": "Get an Ectoplasmator", "tip": "Can be purchased as a reward from the Soul Wars Minigame. ", - "wikiLink": "https://runescape.wiki/w/Ectoplasmator", + "wikiLink": "https://oldschool.runescape.wiki/w/Ectoplasmator", "wikiImage": "https://oldschool.runescape.wiki/images/thumb/0/0a/Ectoplasmator_detail.png/130px-Ectoplasmator_detail.png?6fbc0", "assetImage": "130px-Ectoplasmator_detail.png", "colLogData": {