Skip to content

Commit

Permalink
more lower case things #11
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Dec 19, 2023
1 parent 47c3c16 commit ee80d02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
POSTGRES_DB=pmb
POSTGRES_USER=pmb
POSTGRES_PASSWORD=pmb
POSTGRES_HOST=172.17.0.1
DEBUG=True
# POSTGRES_HOST=172.17.0.1
DEBUG=True
POSTGRES_HOST=127.0.0.1
8 changes: 4 additions & 4 deletions apis_core/apis_metainfo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,15 @@ def merge_with(self, entities):
for r in rels.filter(model__icontains=e_b):
lst_ents_rel = str(r).split()
if lst_ents_rel[-1] == lst_ents_rel[-2]:
q_d = {"related_{}A".format(e_b.lower()): ent}
q_d = {"related_{}a".format(e_b.lower()): ent}
k = r.model_class().objects.filter(**q_d)
for t in k:
setattr(t, "related_{}A".format(e_a.lower()), self)
setattr(t, "related_{}a".format(e_a.lower()), self)
t.save()
q_d = {"related_{}B".format(e_b.lower()): ent}
q_d = {"related_{}b".format(e_b.lower()): ent}
k = r.model_class().objects.filter(**q_d)
for t in k:
setattr(t, "related_{}B".format(e_a.lower()), self)
setattr(t, "related_{}b".format(e_a.lower()), self)
t.save()
else:
q_d = {"related_{}".format(e_b.lower()): ent}
Expand Down
2 changes: 1 addition & 1 deletion set_env_variables.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export $(grep -v '^#' .secret | xargs)
export $(grep -v '^#' .env | xargs)

0 comments on commit ee80d02

Please sign in to comment.