Commit Graph

23 Commits

Author SHA1 Message Date
Lili (Tlapka) 265a6cc9b4 fix check for more than have, add error chat 2023-03-27 16:30:24 +02:00
Lili (Tlapka) 021737ad16 check if user has all the points they're sending 2023-03-27 14:24:35 +02:00
Lili (Tlapka) 0176b6e84c fix minimum bid bug 2023-03-21 12:32:19 +01:00
Lili (Tlapka) 10e84d4aab split redeem operations into redeems.py
owncast_helpers.py is now smaller and only contains smaller, generic fns
so no direct redeem manipulations, but reading points, users, etc.
2023-03-20 17:28:54 +01:00
Lili (Tlapka) 7235340a39 split out requests to owncast_requests.py 2023-03-20 17:16:17 +01:00
Lili (Tlapka) e1ef0c4619 add needed imports 2023-03-20 14:28:50 +01:00
Lili (Tlapka) 49053ee4f4 add completeness to milestones 2023-03-20 13:23:20 +01:00
Lili (Tlapka) 583aeedf64 fix typo 2023-03-15 14:21:15 +01:00
Lili (Tlapka) 7e408c1b74 remove number of donated points from message
it's not always true.
2023-03-15 14:11:34 +01:00
Lili (Tlapka) 22501c80c0 milestone upgrade
subtract pts, rename count to progress, send a chat message on success
2023-03-15 13:13:14 +01:00
Lili (Tlapka) cb574618a6 working milestones prototype in dashboard 2023-03-14 16:26:04 +01:00
Lili (Tlapka) 07c701de71 milestone stub + helpers name change
lets hope milestones work
2023-03-14 14:15:18 +01:00
Lili (Tlapka) 537fa01aef split long lines in redeems_handler.py 2023-01-09 15:17:45 +01:00
Lili (Tlapka) 25589ff69e add emoji html junk removing function
emoji in redeem notes now show up as their shortcodes
2023-01-09 15:08:33 +01:00
Lili (Tlapka) b666211142 better handling of errors in redeems situations
short circuit execution that doesnt take away points + better message
2023-01-05 11:27:10 +01:00
trwnh 420d954568
Refactor: reduce nesting
We can reduce cyclomatic complexity (how far we indented) by checking for a negative condition and exiting early, instead of checking for a positive condition and continuing
2022-11-30 10:45:52 -06:00
Lili (Tlapka) a667f746f3 fix taking away points when no note with note rdm 2022-10-25 18:31:36 +02:00
Lili (Tlapka) 06114022da code style fixes 2022-10-17 18:37:49 +02:00
Lili (Tlapka) 5c6b070a7a redeems dashboard improvement 2022-10-13 14:09:12 +02:00
Lili (Tlapka) dda415f87a init-db typo fixes 2022-10-13 13:29:38 +02:00
Lili (Tlapka) ede1cca8da code skeleton fixes 2022-10-12 15:35:36 +02:00
Lili (Tlapka) 099525f9ff base customizable redeems code skeletons
UNTESTED but i think i got it all
2022-10-12 15:31:34 +02:00
Lili (Tlapka) 062e1c113e prepare skeletons for configurable redeems
move redeem handling code to redeem handler
2022-10-10 15:14:57 +02:00