Skip to content

Commit

Permalink
docs: new inline comments for export
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 5, 2021
1 parent 6483077 commit 2ec7400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/omni/export.py
Expand Up @@ -109,6 +109,10 @@ def export(
objects = caller(object = object)
if not objects: break

# iterates over all the objects that have been retrieved
# and obtains the target fields to write a new CSV row
# per each of the retrieved object and according to the
# requested set of attributes per object
for object in objects:
values = [get_field(object, key, type_m = type_m) for key in attributes]
csv_f.writerow(values)
Expand Down

0 comments on commit 2ec7400

Please sign in to comment.