Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes a bug when current_time doesnt have a default value

  • Loading branch information...
commit fa6f4f927ca21f71703c15624c636eaaff7b7b3b 1 parent 15e35ce
@qzio authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 timesheet/project.py
View
4 timesheet/project.py
@@ -37,8 +37,8 @@ def started(self):
def create_project(self, data):
- return dbexec("insert into projects (user_id, name, price, started_at) "
- "values (%s, %s, %s, 0)",
+ return dbexec("insert into projects (user_id, name, price, started_at, `current_time`) "
+ "values (%s, %s, %s, 0, 0)",
(self.user_id, data["name"], data["price"]))
def start_tracking(self, project_id):
Please sign in to comment.
Something went wrong with that request. Please try again.