0001-misc-ignore-categories-without-title-39889.patch
wcs_olap/feeder.py | ||
---|---|---|
383 | 383 |
if self.prev_table_exists(name): |
384 | 384 |
# Insert data from previous table |
385 | 385 |
self.ex( |
386 |
'INSERT INTO {schema_temp}.{name} select * FROM {schema}.{name}', |
|
386 |
'INSERT INTO {schema_temp}.{name} select * FROM {schema}.{name} WHERE label IS NOT NULL',
|
|
387 | 387 |
ctx={'name': quote(name)} |
388 | 388 |
) |
389 | 389 |
# Find what is missing |
... | ... | |
429 | 429 | |
430 | 430 |
# categories |
431 | 431 |
tmp_cat_map = self.create_labeled_table( |
432 |
'category', enumerate(c.title for c in self.categories), comment='catégorie') |
|
432 |
'category', enumerate(c.title for c in self.categories if c.title), comment='catégorie')
|
|
433 | 433 |
self.categories_mapping = dict((c.slug, tmp_cat_map[c.title]) for c in self.categories) |
434 | 434 | |
435 | 435 |
self.create_labeled_table('hour', zip(range(0, 24), map(str, range(0, 24))), |
436 |
- |