Check-in [4b78a4eba1]
Overview
Comment: | Fixed syntax error in deleted_streams diff |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | py3 |
Files: | files | file ages | folders |
SHA1: |
4b78a4eba1a4ce537291c0e9f512aa88 |
User & Date: | mario on 2014-04-11 22:22:53 |
Other Links: | branch diff | manifest | tags |
Context
2014-04-13
| ||
23:52 | Duplicate docs for fossil wiki check-in: 485cf1b186 user: mario tags: py3 | |
2014-04-11
| ||
22:22 | Fixed syntax error in deleted_streams diff check-in: 4b78a4eba1 user: mario tags: py3 | |
02:54 | Open json/config files in text mode check-in: 8e8ad5dfeb user: mario tags: py3 | |
Changes
Modified channels/_generic.py from [4cf18f9328] to [470a3f337e].
︙ | ︙ | |||
233 234 235 236 237 238 239 | # finds differences in new/old streamlist, marks deleted with flag def deleted_streams(self, new, old): diff = [] new = [row.get("url","http://example.com/") for row in new] for row in old: | | | 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | # finds differences in new/old streamlist, marks deleted with flag def deleted_streams(self, new, old): diff = [] new = [row.get("url","http://example.com/") for row in new] for row in old: if ("url" in row and (row.get("url") not in new)): row["deleted"] = 1 diff.append(row) return diff # prepare data for display def prepare(self, streams): |
︙ | ︙ |