Use new API in cli

master
Salvo 'LtWorf' Tomaselli 2020-08-15 21:20:12 +07:00
parent a67ec498c2
commit 36e312ba7b
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 1 additions and 1 deletions

@ -137,7 +137,7 @@ def load_relation(filename: str, defname:Optional[str]=None) -> Optional[str]:
"%s is not a valid relation name" % defname, ERROR_COLOR), file=sys.stderr)
return None
try:
relations[defname] = relation.Relation(filename)
relations[defname] = relation.Relation.load(filename)
completer.add_completion(defname)
printtty(colorize("Loaded relation %s" % defname, COLOR_GREEN))