Update info cog

This commit is contained in:
Nexus 2023-05-06 11:31:41 +01:00
parent 56f2db51b6
commit 3dea3a7f3d
Signed by: nex
GPG key ID: 0FA334385D0B689F
3 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ try:
import apa102
import RPi.GPIO as GPIO
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

View file

@ -339,7 +339,7 @@ class UptimeCompetition(commands.Cog):
embeds = entries = []
for _target in targets:
_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"]
)
query = query.order_by("-timestamp")

View file

@ -19,3 +19,4 @@ beautifulsoup4>=4.12.0
lxml>=4.9.2
pytesseract>=0.3.10
pillow>=9.5.0
humanize>=4.6.0