(lookfor, eager=None)
| 194 | |
| 195 | |
| 196 | def getCharactersForUser(lookfor, eager=None): |
| 197 | if isinstance(lookfor, int): |
| 198 | eager = processEager(eager) |
| 199 | with sd_lock: |
| 200 | characters = saveddata_session.query(Character).options(*eager).filter(Character.ownerID == lookfor).all() |
| 201 | else: |
| 202 | raise TypeError("Need integer as argument") |
| 203 | return characters |
| 204 | |
| 205 | |
| 206 | @cachedQuery(Fit, 1, "lookfor") |
nothing calls this directly
no test coverage detected