Skip to content

Commit

Permalink
Testing path for SQLAlchemy update
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Jan 12, 2021
1 parent eca78d5 commit e689f31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ckan/model/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def before_commit(self, session):
session.execute(
revision_table.update().where(
and_(revision_table.c.id == obj.id,
revision_table.c.current == '1')
).values(current='0')
revision_table.c.current == True)
).values(current=False)
)

q = session.query(revision_cls)
Expand Down
4 changes: 2 additions & 2 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Routes==1.13
rq==0.6.0
simplejson==3.10.0
sqlalchemy-migrate==0.10.0
SQLAlchemy==1.1.11
SQLAlchemy==1.3.19
sqlparse==0.2.2
tzlocal==1.3
unicodecsv>=0.9
vdm==0.14
vdm==0.15
WebHelpers==1.3
WebOb==1.0.8
WebTest==1.4.3 # need to pin this so that Pylons does not install a newer version that conflicts with WebOb==1.0.8
Expand Down

0 comments on commit e689f31

Please sign in to comment.