comparison scobot/index/build_index_flow.py @ 14:b9c2b7fedbcd

fix up deployment and connect ui to server again
author drewp@bigasterisk.com
date Thu, 11 Jul 2024 22:11:41 -0700
parents 403eff4a16c8
children 6ed25bcaaf1f
comparison
equal deleted inserted replaced
13:403eff4a16c8 14:b9c2b7fedbcd
89 def buildIndex(): 89 def buildIndex():
90 global log 90 global log
91 log = get_run_logger() 91 log = get_run_logger()
92 scobot.index.access.log = log 92 scobot.index.access.log = log
93 93
94 index = SearchIndex(Path('/tmp/scoindex')) 94 index = SearchIndex(Path('data/index'))
95 for url in meetingListUrls(): 95 for url in meetingListUrls():
96 mtgs = cast(list[MeetingRow], getCityMutableJson(url)) 96 mtgs = cast(list[MeetingRow], getCityMutableJson(url))
97 log.info(f'got {len(mtgs)=}') 97 log.info(f'got {len(mtgs)=}')
98 98
99 for mtg in mtgs: 99 for mtg in mtgs: