Skip to content

Commit

Permalink
Use valid description.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 590215583
Change-Id: Ie50f8bc20a61ceb049516c2b19b7a90b45c66393
  • Loading branch information
jagapiou authored and Copybara-Service committed Dec 12, 2023
1 parent 5debdc8 commit 230bebc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions examples/village/riverbend_elections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -614,26 +614,30 @@
"schedule = {\n",
" 'start': gm_components.schedule.EventData(\n",
" time=START_TIME,\n",
" description=None),\n",
" description='',\n",
" ),\n",
" 'election': gm_components.schedule.EventData(\n",
" time=datetime.datetime(hour=13, year=2024, month=10, day=1),\n",
" description=(\n",
" 'The town of Riverbend is now holding an election to determine ' +\n",
" 'who will become the mayor. ' +\n",
" f'Polls will open at {TIME_POLLS_OPEN}.')),\n",
" f'Polls will open at {TIME_POLLS_OPEN}.'),\n",
" ),\n",
" 'election_polls_open': gm_components.schedule.EventData(\n",
" time=TIME_POLLS_OPEN,\n",
" description=(\n",
" 'The election is happening now. Polls are open. Everyone may ' +\n",
" 'go to a polling place and cast their vote. ' +\n",
" f'Polls will close at {TIME_POLLS_CLOSE}.'),\n",
" trigger=election_externality.open_polls),\n",
" trigger=election_externality.open_polls,\n",
" ),\n",
" 'election_polls_close': gm_components.schedule.EventData(\n",
" time=TIME_POLLS_CLOSE,\n",
" description=(\n",
" 'The election is over. Polls are now closed. The results will ' +\n",
" 'now be tallied and a winner declared.'),\n",
" trigger=election_externality.declare_winner)\n",
" trigger=election_externality.declare_winner,\n",
" )\n",
"}\n",
"\n",
"schedule_construct = gm_components.schedule.Schedule(\n",
Expand Down

0 comments on commit 230bebc

Please sign in to comment.