This commit is contained in:
Salvo 'LtWorf' Tomaselli 2020-08-13 10:19:33 +02:00
parent 456a89be93
commit 0a06034c9f
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF

View File

@ -1,5 +1,5 @@
# Relational # Relational
# Copyright (C) 2010-2017 Salvo "LtWorf" Tomaselli # Copyright (C) 2010-2020 Salvo "LtWorf" Tomaselli
# #
# Relational is free software: you can redistribute it and/or modify # Relational is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -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) "%s is not a valid relation name" % defname, ERROR_COLOR), file=sys.stderr)
return None return None
try: try:
relations[defname] = relation.relation(filename) relations[defname] = relation.Relation(filename)
completer.add_completion(defname) completer.add_completion(defname)
printtty(colorize("Loaded relation %s" % defname, COLOR_GREEN)) printtty(colorize("Loaded relation %s" % defname, COLOR_GREEN))