Commit 914b8582 authored by Richard Robert Sawoscinski's avatar Richard Robert Sawoscinski
Browse files

Merge branch 'newbranch' into 'main'

strip statements

See merge request !7
parents 8ca8c829 c222a908
......@@ -70,7 +70,7 @@ class Sifter:
self.account,
'show',
'filelist',
'name',
'name'.strip(),
'id',
'alternateLink',
'mimeType',
......@@ -99,7 +99,7 @@ class Sifter:
data = {
'owner': child['owners.0.emailAddress'],
'name': child['title'],
'name': child['title'].strip(),
'id': child['id'],
'link': child['alternateLink'],
'parent': '\\'.join(self.parent),
......@@ -147,7 +147,7 @@ class Sifter:
if item['id'] not in self.private_files.keys():
self.unknown_files[item['id']] = {
'owner': item['owners.0.emailAddress'],
'name': item['title'],
'name': item['title'].strip(),
'id': item['id'],
'link': item['alternateLink'],
'created': item['createdDate']
......@@ -180,7 +180,7 @@ class Sifter:
if item['owners.0.emailAddress'] != self.account:
self.shared_files[item['id']] = {
'owner': item['owners.0.emailAddress'],
'name': item['title'],
'name': item['title'].strip(),
'id': item['id'],
'link': item['alternateLink'],
'created': item['createdDate']
......@@ -201,6 +201,8 @@ class Sifter:
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
writer.writeheader()
for item in self.transfer_files:
new_row = self.transfer_files[item]
print (type(new_row))
writer.writerow(self.transfer_files[item])
csvfile.close()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment