django-statsy icon indicating copy to clipboard operation
django-statsy copied to clipboard

Postgres option (dashboard time aggregation)

Open zhebrak opened this issue 10 years ago • 1 comments

zhebrak avatar Feb 22 '15 22:02 zhebrak

for postgres: In file stats.py#53:

time_extract_postgres = "to_char(created_at, 'yyyy:mm:dd:hh24:mi')"
if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql_psycopg2':
    time_extract = time_extract_postgres

jacopsd avatar Jul 11 '18 08:07 jacopsd