diff --git a/slabbedasker.py b/slabbedasker.py new file mode 100755 index 0000000..3c54b3d --- /dev/null +++ b/slabbedasker.py @@ -0,0 +1,9 @@ +#!/usr/bin/python +from db import * +# Start an SQL session +session=Session() +# Let's find all users with a negative credit +slabbedasker=session.query(User).filter(User.credit<0).all() + +for slubbert in slabbedasker: + print "%s, %s" % (slubbert.name, slubbert.credit)