Skip to content

Commit

Permalink
Merge pull request #23 from Scandie/a838455421206170_texas_planning
Browse files Browse the repository at this point in the history
Add texas_streams to plan_auctions_view
  • Loading branch information
leits committed Oct 12, 2018
2 parents b78038e + 217bc85 commit b98cd0c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions openprocurement/chronograph/design.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
from couchdb.design import ViewDefinition
from openprocurement.chronograph.constants import INSIDER_WORKING_DAY_START
from openprocurement.chronograph.constants import (
INSIDER_WORKING_DAY_START, TEXAS_WORKING_DAY_START
)


def sync_design(db):
Expand Down Expand Up @@ -30,6 +32,12 @@ def sync_design(db):
doc._id.split('_')[1] + 'T' + '%s');
}
}
if (i.indexOf('texas_streams') == 0) {
for (var aid in doc[i]) {
emit([doc[i][aid], null],
doc._id.split('_')[1] + 'T' + '%s');
}
}
};
}
}''' % INSIDER_WORKING_DAY_START.isoformat())
}''' % (INSIDER_WORKING_DAY_START.isoformat(), TEXAS_WORKING_DAY_START.isoformat()))

0 comments on commit b98cd0c

Please sign in to comment.