equal
deleted
inserted
replaced
248 result = dbc.fetchall() |
248 result = dbc.fetchall() |
249 dbc.close() |
249 dbc.close() |
250 |
250 |
251 gids = [] |
251 gids = [] |
252 daddrs = {} |
252 daddrs = {} |
253 lastgid = None |
|
254 for gid, address, addrtype, aliasdomain in result: |
253 for gid, address, addrtype, aliasdomain in result: |
255 if gid != lastgid: |
254 if gid not in gids: |
256 gids.append(gid) |
255 gids.append(gid) |
257 lastgid = gid |
|
258 daddrs[gid] = [] |
256 daddrs[gid] = [] |
259 daddrs[gid].append((address, addrtype, aliasdomain)) |
257 daddrs[gid].append((address, addrtype, aliasdomain)) |
260 return gids, daddrs |
258 return gids, daddrs |
261 |
259 |
262 del _ |
260 del _ |