fixed handling of missing foto upload
This commit is contained in:
@@ -141,7 +141,7 @@
|
|||||||
"df['Nachname'] = df['Nachname'].str.strip()\n",
|
"df['Nachname'] = df['Nachname'].str.strip()\n",
|
||||||
"df['rower'] = df.apply(evaluate_rower,axis=1,args=('rower',))\n",
|
"df['rower'] = df.apply(evaluate_rower,axis=1,args=('rower',))\n",
|
||||||
"df['Telefonnummer'] = df.apply(extract_tel,axis=1,args=('Telefonnummer',))\n",
|
"df['Telefonnummer'] = df.apply(extract_tel,axis=1,args=('Telefonnummer',))\n",
|
||||||
"df['Foto'] = df['Foto'].str.replace(' ','-')"
|
"df['Foto'] = df['Foto'].str.replace(' ','-').fillna('-')"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -165,6 +165,8 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" filename = row['Foto']\n",
|
" filename = row['Foto']\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
" if filename != '-':\n",
|
||||||
|
"\n",
|
||||||
" found_photo = False\n",
|
" found_photo = False\n",
|
||||||
" i = 30\n",
|
" i = 30\n",
|
||||||
" while found_photo is False:\n",
|
" while found_photo is False:\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user