Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
fix build instructions
· 19e34455
Konrad Mohrfeldt
authored
Oct 06, 2019
19e34455
expose artist via api
· 2f5b84d5
Konrad Mohrfeldt
authored
Oct 06, 2019
2f5b84d5
fix little packaging errors
· 065d55bc
Konrad Mohrfeldt
authored
Oct 06, 2019
065d55bc
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
065d55bc
...
...
@@ -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
...
...
debian/changelog
View file @
065d55bc
...
...
@@ -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
debian/control
View file @
065d55bc
...
...
@@ -23,7 +23,7 @@ Depends:
python3,
python3-tornado,
python3-mysqldb,
Description:
A t
ornado web app implementing the Thekno track-service API
Description:
T
ornado web app implementing the Thekno track-service API
Package: lohro-track-api
Architecture: all
...
...
lohro_track_api/models.py
View file @
065d55bc
...
...
@@ -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
))