Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.conf import settings
- CLIENT_JSON_PATH = settings.BASE_DIR + "/ga_client.json"
- VIEW_ID = settings.GA_VIEW_ID
- # DATABASE_PATH
- DATABASE_PATH = settings.BASE_DIR + '/output/sqlite/superset_adapter.db'
- def convert_datetime(x):
- try:
- import datetime
- x = int(x) / 1000
- return datetime.datetime.fromtimestamp(x);
- except TypeError:
- return x
- except ValueError:
- return x
Add Comment
Please, Sign In to add comment