Skip to content

Commit

Permalink
Commit database after creating oauth_tokens table. Fixes sybrenstuvel#75
Browse files Browse the repository at this point in the history


This change seems to be required in Python 3.6.0. It works correctly without the db.commit() in 3.5.2 and earlier. Without the commit the first table, oauth_cache_db_version, gets created, but oauth_tokens does not.
  • Loading branch information
hunterji committed Jan 21, 2017
1 parent 142d199 commit e6c8004
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flickrapi/tokencache.py
Expand Up @@ -165,6 +165,8 @@ def create_table(self):
user_nsid varchar(64) not null,
PRIMARY KEY(api_key, lookup_key))''')

db.commit()

@property
def token(self):
"""Return the cached token for this API key, or None if not found."""
Expand Down

0 comments on commit e6c8004

Please sign in to comment.