Skip to content

Commit

Permalink
Add missing import from datetime timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnavarro committed Apr 17, 2024
1 parent 6c5a9e6 commit d500faa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v2.0.3 2024-04-17 JP
- Add missing import from datetime timezone

v2.0.2 2024-04-17 JP
- Fix APP_NAME in startup scripts

Expand Down
4 changes: 2 additions & 2 deletions bin/router_accessdb-fos.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Router to synchronize ACCESS Allocations Fields of Science into the Information Sharing Platform
import argparse
from collections import Counter
from datetime import datetime
from datetime import datetime, timezone
import hashlib
import json
import logging
Expand Down Expand Up @@ -77,7 +77,7 @@ def __init__(self):
self.pidfile_path = '/var/run/{}/{}.pid'.format(name, name)

# Setup AFTER we know that no other self is running
def Setup(self)
def Setup(self):
# Initialize log level from arguments, or config file, or default to WARNING
loglevel_str = (self.args.log or self.config.get('LOG_LEVEL', 'WARNING')).upper()
loglevel_num = getattr(logging, loglevel_str, None)
Expand Down

0 comments on commit d500faa

Please sign in to comment.