mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-24 12:58:05 +00:00
Merge branch 'master' of https://github.com/sartography/uva-covid19-testing-communicator into dashboard
This commit is contained in:
commit
26a3522006
@ -39,7 +39,7 @@ def get_samples(bar_code=None):
|
|||||||
app.logger.error(f'Someone queried for a barcode that does not exist: {bar_code} ', exc_info=True)
|
app.logger.error(f'Someone queried for a barcode that does not exist: {bar_code} ', exc_info=True)
|
||||||
raise Exception("No such bar code.")
|
raise Exception("No such bar code.")
|
||||||
query = query.filter(Sample.date > last_sample.date)
|
query = query.filter(Sample.date > last_sample.date)
|
||||||
samples = query.all()
|
samples = query.order_by(Sample.date).limit(200).all()
|
||||||
response = SampleSchema(many=True).dump(samples)
|
response = SampleSchema(many=True).dump(samples)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user