superphy / spfy

Spfy: an integrated graph database for real-time prediction of Escherichia coli phenotypes and downstream comparative analyses
https://lfz.corefacility.ca/superphy/grouch/
Apache License 2.0
4 stars 2 forks source link

TypeError: can't compare datetime.datetime to int #310

Open kevinkle opened 6 years ago

kevinkle commented 6 years ago

https://sentry.io/superphy/spfy/issues/581981342/

TypeError: can't compare datetime.datetime to int
(4 additional frame(s) were not displayed)
...
  File "flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "routes/ra_timings.py", line 36, in job_timings
    return jsonify(_time_pipeline(job_id))
  File "routes/ra_timings.py", line 16, in _time_pipeline
    return pipeline.timings()
  File "middleware/models.py", line 355, in timings
    if i < mn:

TypeError: can't compare datetime.datetime to int