This commit is contained in:
ilia 2023-05-23 23:38:45 +03:00
parent 4f7185fd6b
commit 3b4af80b69
3 changed files with 3 additions and 3 deletions

BIN
mus.ann Normal file

Binary file not shown.

BIN
mus.pickle Normal file

Binary file not shown.

View File

@ -296,7 +296,7 @@ def get_nearest_favorite(events: Iterable[Event], user: User, exclude_events: It
def filter_hotel(region: Region, user: User, stars: Iterable[int]):
hotels = Hotel.objects.filter(region=region)
hotels = Hotel.objects.filter(city=region)
return choice(hotels)
@ -321,11 +321,11 @@ def generate_point(point: BasePoint):
"type": "point",
"point": point,
"point_type": "",
"time": timedelta(minutes=90+choice(range(-80, 90, 10)))
"time": timedelta(minutes=90+choice(range(-10, 90, 10)))
}
def generate_path(region: Region, user: User):
def generate_path(region: City, user: User):
#region_events = Event.objects.filter(region=region)
hotel = filter_hotel(region, user, [])