ui polish and importer logging tuning
This commit is contained in:
+9
-1
@@ -2009,7 +2009,15 @@ def get_image_series_info(image_id):
|
||||
sp = SeriesPage.query.filter_by(image_id=image_id).first()
|
||||
|
||||
if not sp:
|
||||
return jsonify(ok=True, in_series=False)
|
||||
# Return any series tags the image has (for auto-select in dropdown)
|
||||
image = ImageRecord.query.get(image_id)
|
||||
series_tags = []
|
||||
if image:
|
||||
series_tags = [
|
||||
{'id': t.id, 'name': t.name}
|
||||
for t in image.tags if t.kind == 'series'
|
||||
]
|
||||
return jsonify(ok=True, in_series=False, series_tags=series_tags)
|
||||
|
||||
return jsonify(ok=True, in_series=True, series_page={
|
||||
'id': sp.id,
|
||||
|
||||
Reference in New Issue
Block a user