# Path: roommates/helpers.py
# def query_db(query, args=(), one=False):
# 	cur = g.db.execute(query, args)
# 	rv = [dict((cur.description[idx][0], value) for idx, value in enumerate(row)) for row in cur.fetchall()]
# 	return (rv[0] if rv else None) if one else rv


import sqlite3
import arrow
from roommates.helpers import query_db
from datetime import datetime
from markdown import markdown

date_format = "%Y-%m-%d"

class User:
	def __init__(self, id):

# Path: roommates/helpers.py
# def query_db(query, args=(), one=False):
# 	cur = g.db.execute(query, args)
# 	rv = [dict((cur.description[idx][0], value) for idx, value in enumerate(row)) for row in cur.fetchall()]
# 	return (rv[0] if rv else None) if one else rv


# Path: roommates/classes.py
import sqlite3
import arrow
from roommates.helpers import query_db
from datetime import datetime
from markdown import markdown


date_format = "%Y-%m-%d"

class User:
	def __init__(self, id):

		user = query_db('SELECT * FROM users WHERE id = ?', [id], one=True)