no more duplicate students (i found this fr)

This commit is contained in:
esef committed 2026-07-12 19:30:12 +03:00
1 parent 973330d21a
commit 4c2a4c8937
1 file changed
+1 -5
+1 -5
View File
@@ -58,11 +58,7 @@ def add_pull(user_id: int, student_id: int, rarity: int) -> int:
) )
row = cur.fetchone() row = cur.fetchone()
if row: if row:
# Duplicate — increment and earn eligma # Duplicate — convert to eligma only, keep count at 1
conn.execute(
"UPDATE inventory SET count = count + 1 WHERE user_id = ? AND student_id = ?",
(user_id, student_id),
)
eligma = ELIGMA_YIELD.get(rarity, 0) eligma = ELIGMA_YIELD.get(rarity, 0)
_add_eligma(conn, user_id, eligma) _add_eligma(conn, user_id, eligma)
return eligma return eligma