mirror of https://gitlab.com/bashrc2/epicyon
Ensure that end hours are at least the same as current
parent
f9739c4774
commit
e2db921c87
5
maps.py
5
maps.py
|
@ -589,8 +589,9 @@ def _hashtag_map_within_hours(base_dir: str, tag_name: str,
|
||||||
secs_since_epoch = \
|
secs_since_epoch = \
|
||||||
int((datetime.datetime.utcnow() -
|
int((datetime.datetime.utcnow() -
|
||||||
datetime.datetime(1970, 1, 1)).total_seconds())
|
datetime.datetime(1970, 1, 1)).total_seconds())
|
||||||
end_hours_since_epoch = int(secs_since_epoch / (60 * 60))
|
curr_hours_since_epoch = int(secs_since_epoch / (60 * 60))
|
||||||
start_hours_since_epoch = end_hours_since_epoch - abs(hours)
|
start_hours_since_epoch = curr_hours_since_epoch - abs(hours)
|
||||||
|
end_hours_since_epoch = curr_hours_since_epoch + 2
|
||||||
if map_format == 'gpx':
|
if map_format == 'gpx':
|
||||||
map_str = \
|
map_str = \
|
||||||
_hashtag_map_to_gpx(base_dir, tag_name,
|
_hashtag_map_to_gpx(base_dir, tag_name,
|
||||||
|
|
Loading…
Reference in New Issue