We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c0f5bf15 authored by jurgbohn's avatar jurgbohn

Removed lines breaking import, added Recover_Password-table

parent 610248fc
......@@ -165,6 +165,11 @@ if (isset($_POST['install'])) {
msg text,
data text,
time int);");
$res = $mdb2->query("CREATE TABLE Recovery_Request(
username VARCHAR(64),
email VARCHAR(255),
code VARCHAR(32),
int expires);");
// Test user configuration
$res = $mdb2->query("INSERT INTO Users
......@@ -53,13 +53,11 @@ def fetch_tracks(user, request_delay=0.5):
def main(*args):
if len(args) == 2:
# Print to stdout
print u'Artist\tTrack\tTimestamp'
for artist, track, timestamp in fetch_tracks(args[1]):
print u'%s\t%s\t%s' % (artist, track, timestamp)
elif len(args) == 3:
# Write to file
f = codecs.open(args[2], 'w', 'utf-8')
for artist, track, timestamp in fetch_tracks(args[1]):
f.write(u'%s\t%s\t%s\n' % (artist, track, timestamp))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment