fix hltb worker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-04-02 21:23:00 +03:00
parent f820e86277
commit c84600ae3e
8 changed files with 71 additions and 9 deletions

View File

@@ -176,7 +176,7 @@ def steam_import(request):
continue
hours = game['hours']
progress = min(100.0, hours) if hours > 0 else 0.0
item = Item.objects.create(
Item.objects.create(
user=request.user,
category=Item.GAMES,
name=game['name'],
@@ -184,7 +184,6 @@ def steam_import(request):
progress_percent=progress,
steam_appid=game['appid'],
)
hltb_api.apply_to_item(item)
imported += 1
del request.session['steam_games']