Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix if no evistype is set that is return the complete list

  • Loading branch information...
commit 06fbca48c762e0673c5d79b61115de206d4bfb1c 1 parent 2ac8d82
Tim Kleinschmidt Azd325 authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 cmsplugin_eviscape/views.py
6 cmsplugin_eviscape/views.py
@@ -21,5 +21,9 @@ def get_sent_evis(server, nod_id, limit, evis_type):
21 21 data = data.strip('()')
22 22 data = json.loads(data)
23 23
24   - sent_evis = [e for e in data['objects'] if e['evis']['typ_value'] == evis_type]
  24 + # Check if a evis_type is set and filter the results for it
  25 + if evis_type:
  26 + sent_evis = [e for e in data['objects'] if e['evis']['typ_value'] == evis_type]
  27 + else:
  28 + sent_evis = [e for e in data['objects']]
25 29 return sent_evis

0 comments on commit 06fbca4

Please sign in to comment.
Something went wrong with that request. Please try again.