mirror of
https://github.com/glomatico/votify.git
synced 2026-09-26 19:12:27 +02:00
Return media id instead of bool in flat_filter
This commit is contained in:
@@ -38,6 +38,6 @@ class Database:
|
||||
def close(self) -> None:
|
||||
self.connection.close()
|
||||
|
||||
def flat_filter(self, media_metadata: dict) -> bool:
|
||||
def flat_filter(self, media_metadata: dict) -> str | None:
|
||||
media_id = media_metadata["uri"].split(":")[-1]
|
||||
return bool(self.get(media_id))
|
||||
return self.get(media_id)
|
||||
|
||||
Reference in New Issue
Block a user