Permalink
Browse files

altering the sample data to look like live data - it was inserting ze…

…roes and causing the API tests to fail
  • Loading branch information...
1 parent af1acde commit ae2be644cafba45e88286c40cda2813cac243437 @lornajane lornajane committed Apr 29, 2012
Showing with 9 additions and 7 deletions.
  1. +9 −7 doc/dbgen/generator.class.php
@@ -492,18 +492,20 @@ protected function _generateEvents($count) {
// Call for papers
if (! $future && $this->_chance(EVENT_HAS_CFP)) {
// @TODO: Add CFP
- $event->cfp_start = 0;
- $event->cfp_end = 0;
+ $event->cfp_start = null;
+ $event->cfp_end = null;
} else {
- $event->cfp_start = 0;
- $event->cfp_end = 0;
+ $event->cfp_start = null;
+ $event->cfp_end = null;
}
if (! $first) echo ",\n";
- printf ("('%s', %d, %d, %f, %f, %d, '%s', '%s', %d, '%s', '%s', %d, '%s', '%s', %d, %d, %d, %d, '%s', '%s', '%s', '%s', '%s')",
+ printf ("('%s', %d, %d, %f, %f, %d, '%s', '%s', %d, '%s', '%s', %d, '%s', '%s', %s, %s, %d, %d, '%s', '%s', '%s', '%s', '%s')",
$event->name, $event->start, $event->end, $event->lat, $event->long, $id, $event->location, $event->description,
- 1, $event->stub, $event->icon, 0, $event->hash, $event->url, $event->cfp_start, $event->cfp_end,
+ 1, $event->stub, $event->icon, 0, $event->hash, $event->url,
+ $event->cfp_start ? $event->cfp_start : 'null',
+ $event->cfp_end ? $event->cfp_end : 'null',
0, 0, "Europe", "Amsterdam", "", "", $event->url."/cfp");
$first = false;
@@ -647,4 +649,4 @@ function _genLorum($max = 15) {
} // End class
- ?>
+ ?>

0 comments on commit ae2be64

Please sign in to comment.