Skip to content

Commit

Permalink
fix(tg): Case insensitive identification number for /spot
Browse files Browse the repository at this point in the history
Signed-off-by: Kwong Tung Nan <[email protected]>
  • Loading branch information
kwongtn committed Jul 5, 2024
1 parent ef2ff70 commit 37893c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram_provider/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ async def spot(update: Update, context) -> None:

# Search for vehicle
vehicle = await Vehicle.objects.filter(
Q(identification_no__startswith=args.vehicle_number, lines__in=lines)
Q(identification_no__istartswith=args.vehicle_number, lines__in=lines)
& ~Q(
status__in=[
VehicleStatus.MARRIED,
Expand Down

0 comments on commit 37893c7

Please sign in to comment.