13 lines
321 B
Hy
13 lines
321 B
Hy
|
#!/usr/bin/env hy
|
||
|
(import app [models])
|
||
|
(import app.database [async_session])
|
||
|
(import sqlalchemy [select])
|
||
|
(import pprint [pprint])
|
||
|
|
||
|
|
||
|
(defn/a selete_object
|
||
|
[db ap_type]
|
||
|
(.all (await (.scalars db
|
||
|
(.where (select models.InboxObject)
|
||
|
(= models.InboxObject.ap_type ap_type))))))
|