Fixing __repr__ for RightmoveListing and adding a small testing script
This commit is contained in:
parent
8698b41e0e
commit
f30115eecd
2 changed files with 16 additions and 5 deletions
10
testing.py
Normal file
10
testing.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from rec.db import RightmoveListing, session
|
||||
from sqlalchemy import select
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("x")
|
||||
x = select(RightmoveListing).where(RightmoveListing.price <600000)
|
||||
print("y")
|
||||
d = list(session.execute(x))
|
||||
print(d)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue