Skip to content

Commit

Permalink
🛠 Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shamhi committed Sep 15, 2024
1 parent 7c8bc5d commit 36c4de7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/core/tapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ async def run(self, proxy: Optional[str]) -> None:
available_energy = profile_data.get('availableTaps', 0)
balance = int(profile_data.get('balanceCoins', 0))

upgrades = upgrades_data['upgradesForBuy']
tasks_config = version_config.get('tasks', {})
upgrades = upgrades_data.get('upgradesForBuy', [])

daily_combo = upgrades_data.get('dailyCombo')
if daily_combo and settings.APPLY_COMBO:
bonus = daily_combo['bonusCoins']
Expand Down Expand Up @@ -214,8 +216,6 @@ async def run(self, proxy: Optional[str]) -> None:
weeks = daily_task['weeks']
days = daily_task['days']

tasks_config = version_config['tasks']

for task in tasks_config:
if task.get("id") == "streak_days_special":
for week_data in task["rewardsByWeeksAndDays"]:
Expand Down

0 comments on commit 36c4de7

Please sign in to comment.