mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Update info cog
This commit is contained in:
parent
56f2db51b6
commit
3dea3a7f3d
3 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@ try:
|
||||||
import apa102
|
import apa102
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print("Raspberry Pi libraries not found.", e, file=sys.stderr)
|
# print("Raspberry Pi libraries not found.", e, file=sys.stderr)
|
||||||
fanshim = GPIO = apa102 = None
|
fanshim = GPIO = apa102 = None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -339,7 +339,7 @@ class UptimeCompetition(commands.Cog):
|
||||||
embeds = entries = []
|
embeds = entries = []
|
||||||
for _target in targets:
|
for _target in targets:
|
||||||
_target = self.get_target(_target, _target)
|
_target = self.get_target(_target, _target)
|
||||||
query = UptimeEntry.objects.filter(UptimeEntry.columns.timestamp >= look_back_timestamp).filter(
|
query = UptimeEntry.objects.filter(timestamp__gte=look_back_timestamp).filter(
|
||||||
target_id=_target["id"]
|
target_id=_target["id"]
|
||||||
)
|
)
|
||||||
query = query.order_by("-timestamp")
|
query = query.order_by("-timestamp")
|
||||||
|
|
|
@ -19,3 +19,4 @@ beautifulsoup4>=4.12.0
|
||||||
lxml>=4.9.2
|
lxml>=4.9.2
|
||||||
pytesseract>=0.3.10
|
pytesseract>=0.3.10
|
||||||
pillow>=9.5.0
|
pillow>=9.5.0
|
||||||
|
humanize>=4.6.0
|
||||||
|
|
Loading…
Reference in a new issue