Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Fix parsedatetime usage, disable SQL echo
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jun 19, 2014
1 parent d70ccc0 commit 02c056f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions synoptic/__init__.py
Expand Up @@ -120,7 +120,10 @@ def __init__(self, sub_app, dburl, exists, echo=False):

from sqlalchemy.pool import NullPool
from sqlalchemy import create_engine
self.engine = create_engine(dburl, poolclass=NullPool, echo=True)
self.engine = create_engine(
dburl, poolclass=NullPool,
#echo=True
)

from synoptic.datamodel import DataModel
self.datamodel = DataModel()
Expand Down Expand Up @@ -704,7 +707,7 @@ def http_get_item_history(self, request):

@staticmethod
def parse_datetime(data, name, rel_to_name=None, use_utc=False):
import parsedatetime.parsedatetime as pdt
import parsedatetime as pdt
cal = pdt.Calendar()
import datetime
import time
Expand Down

0 comments on commit 02c056f

Please sign in to comment.