Skip to content
Snippets Groups Projects
Commit 7155f6d0 authored by Sabine Schröder's avatar Sabine Schröder
Browse files

force application not to use a non-existing temporary contributors table

parent bee973e9
No related branches found
No related tags found
Loading
Pipeline #248283 passed
......@@ -50,3 +50,5 @@ curl -X POST -H 'Content-Type: multipart/form-data; charset=utf-8; boundary=__X_
curl -X PATCH -H 'Content-Type: multipart/form-data; charset=utf-8; boundary=__X_PAW_BOUNDARY__' -F "file=@o3_CO002_2012_2017_v1-0.dat" "http://127.0.0.1:8000/data/timeseries/?description=fixed%20formatting%20errors%20on%20data&version=000001.000001.00000000000000"
# add one record (including changelog entry)
curl -X POST -H "Content-Type:application/json" "http://127.0.0.1:8000/data/timeseries/record/?series_id=96&datetime=2021-08-23%2015:00:00&value=67.3&flag=OK&version=000001.000001.00000000000000"
# register list of timeseries (ids) contributing to a service request
curl -X POST -H "Content-Type:application/json" -d '''[1,2,3]''' "http://127.0.0.1:8000/timeseries/register_timeseries_list_of_contributors/5f0df73a-bd0f-48b9-bb17-d5cd36f89598"
......@@ -9,7 +9,7 @@ from sqlalchemy import Column, Integer, String, ARRAY, Table
from toardb.base import Base
s1_contributors_table = Table('services.s1_contributors', Base.metadata,
s1_contributors_table = Table('s1_contributors', Base.metadata,
Column('request_id', String(36), primary_key=True, nullable=False),
Column('timeseries_ids',ARRAY(Integer))
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment