code refactoring around import

This commit is contained in:
SJ
2016-03-03 11:04:32 +01:00
parent 74bfea36c6
commit bd0c7e9653
15 changed files with 588 additions and 452 deletions

View File

@@ -176,7 +176,7 @@ int add_new_folder(struct session_data *sdata, struct __data *data, char *folder
}
void update_import_job_stat(struct session_data *sdata, struct __data *data, struct __config *cfg){
void update_import_job_stat(struct session_data *sdata, struct __data *data){
char buf[SMALLBUFSIZE];
snprintf(buf, sizeof(buf)-1, "update import set status=%d, started=%ld, updated=%ld, finished=%ld, total=%d, imported=%d where id=%d", data->import->status, data->import->started, data->import->updated, data->import->finished, data->import->total_messages, data->import->processed_messages, data->import->import_job_id);