Skip to content

Commit 154009a

Browse files
committed
Fix showing very old collections
1 parent 5f07c77 commit 154009a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

backend/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ def summary(f):
352352

353353
res = cur.execute("SELECT paydate FROM coins WHERE status IN ('owned', 'ordered', 'sale', 'sold', 'missing', 'duplicate', 'replacement') AND paydate<>'' AND paydate IS NOT NULL ORDER BY paydate LIMIT 1")
354354
data = res.fetchall()
355-
collection_summary['first_purchase'] = data[0][0]
355+
if data:
356+
collection_summary['first_purchase'] = data[0][0]
356357

357358
con.close()
358359

frontend/src/components/CoinListView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const loadImage = async (index, coinId) => {
126126
<FilterItem :filters="filters['mint']" field="mint" :settings="settings" @filter-changed="onChanged" v-model="selectedMint" />
127127
</v-container>
128128

129-
<v-container>
129+
<v-container v-if="coinsList.length > 0">
130130
<v-text-field
131131
v-model="searchVal"
132132
:label="i18n.global.t('Search')"

0 commit comments

Comments
 (0)