Skip to content

Commit

Permalink
add default webp and use it for max recurse condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tavdog committed Feb 8, 2025
1 parent 7f4d122 commit f7becf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tronbyt_server/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,9 @@ def next_app(device_id,user=None,last_app_index=None,recursion_depth=0):
if not last_app_index:
last_app_index = db.get_last_app_index(device_id)

# Pick device by passed in device_id
device = user['devices'][device_id]

# treat em like an array
if "apps" not in device:
return next_app(device_id, user, 0, recursion_depth + 1)
Expand Down

0 comments on commit f7becf8

Please sign in to comment.