Use complete words for variable names; document the convention

Rename abbreviated identifiers in the PR's code to full words: tpl→template,
e→event, el→element, removeBtn→removeButton, and single-letter loop variables
(o→option, g/d/p→game/device/platform, v→value/modifier_value). Add a
'name variables with complete words' convention to CLAUDE.md.

https://claude.ai/code/session_01XzhXvMvw42CQGc9kmin3GS
This commit is contained in:
Claude
2026-06-08 10:32:21 +00:00
committed by Lukáš Kucharczyk
parent f210f818a9
commit 29b42e0f3d
4 changed files with 44 additions and 34 deletions
+8 -4
View File
@@ -106,8 +106,8 @@ def _resolve_game_options(ids):
from games.models import Game
return [
{"value": g.id, "label": g.search_label}
for g in Game.objects.filter(pk__in=ids)
{"value": game.id, "label": game.search_label}
for game in Game.objects.filter(pk__in=ids)
]
@@ -116,7 +116,10 @@ def _resolve_device_options(ids):
return []
from games.models import Device
return [{"value": d.id, "label": d.name} for d in Device.objects.filter(pk__in=ids)]
return [
{"value": device.id, "label": device.name}
for device in Device.objects.filter(pk__in=ids)
]
def _resolve_platform_options(ids):
@@ -125,7 +128,8 @@ def _resolve_platform_options(ids):
from games.models import Platform
return [
{"value": p.id, "label": p.name} for p in Platform.objects.filter(pk__in=ids)
{"value": platform.id, "label": platform.name}
for platform in Platform.objects.filter(pk__in=ids)
]