Skip to content
Commits on Source (3)
......@@ -2,16 +2,14 @@ stages:
- test
- build
before_script:
- make ci_deps_debian
test_buster:
image: $CI_REGISTRY_IMAGE/build:buster
stage: test
script:
- make ci_settings test
- make test
make_deb_package:
image: $CI_REGISTRY_IMAGE/build:buster
stage: build
tags:
- fast-io
......
......@@ -2,4 +2,4 @@ lohro-track-api (0.1.0-1) unstable; urgency=medium
* New upstream release
-- Konrad Mohrfeldt <konrad.mohrfeldt@farbdev.org> Mon, 05 Oct 2019 19:47:12 +0200
-- Konrad Mohrfeldt <konrad.mohrfeldt@farbdev.org> Sat, 05 Oct 2019 19:47:12 +0200
......@@ -23,7 +23,7 @@ Depends:
python3,
python3-tornado,
python3-mysqldb,
Description: A tornado web app implementing the Thekno track-service API
Description: Tornado web app implementing the Thekno track-service API
Package: lohro-track-api
Architecture: all
......
......@@ -2,10 +2,10 @@ import datetime
class Track:
def __init__(self, pk, title, description, started_at):
def __init__(self, pk, artist, title, started_at):
self.id = pk
self.artist = artist
self.title = title
self.description = description
self.started_at = started_at
def __eq__(self, other):
......@@ -15,7 +15,8 @@ class Track:
return dict(
id=self.id,
title=self.title,
description=self.description,
artist=self.artist,
description=self.artist,
started_at=self.started_at.isoformat(),
finished_at=None,
cover_image=None,
......@@ -24,5 +25,5 @@ class Track:
@classmethod
def hydrate_from_db(cls, row):
pk, start, artist, title = row
return cls(pk, title, artist,
return cls(pk, artist, title,
datetime.datetime.fromtimestamp(start))