Skip to content

Commit

Permalink
Merge pull request #15 from gprelatto/eduingui-patch-1
Browse files Browse the repository at this point in the history
add user id to reports
  • Loading branch information
eduingui authored Jul 1, 2020
2 parents 8c8069f + 23e1db1 commit f017c4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@ def get(self, request):
if (oUser.user_type.description == 'Admin' or oUser.user_type.description == 'Owner'):
command = """\
SELECT \
c."id" ,\
c."name" ,\
c.lastname ,\
a."confirmationDate" ,\
Expand All @@ -1201,6 +1202,7 @@ def get(self, request):
else:
command = """\
SELECT \
c."id" ,\
c."name" ,\
c."lastname" ,\
a."confirmationDate" ,\
Expand Down Expand Up @@ -1249,6 +1251,7 @@ def get(self, request):
if (oUser.user_type.description == 'Admin' or oUser.user_type.description == 'Owner'):
command = """\
SELECT \
c."id" ,\
c."name" ,\
c.lastname ,\
a."confirmationDate" ,\
Expand Down Expand Up @@ -1276,6 +1279,7 @@ def get(self, request):
else:
command = """\
SELECT \
c."id" ,\
c."name" ,\
c."lastname" ,\
a."confirmationDate" ,\
Expand Down Expand Up @@ -1338,4 +1342,4 @@ def dictfetchall(cursor):
return [
dict(zip(columns, row))
for row in cursor.fetchall()
]
]

0 comments on commit f017c4a

Please sign in to comment.