Created
June 20, 2013 14:55
-
-
Save gamesbrainiac/5823448 to your computer and use it in GitHub Desktop.
Learning SQL! :D
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def query(): | |
cursor = db.execute("SELECT * FROM links WHERE submitter_id=62443 ORDER BY submitted_time ASC") | |
assert isinstance(cursor, sqlite3.Cursor) | |
return_links = [Link(*link).id for link in cursor.fetchall()] | |
return return_links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment