Commit b1df4af7 authored by 张彦钊's avatar 张彦钊

nearby queue 取前500个日记队列

parent f35a9092
......@@ -25,9 +25,9 @@ def nearby_set_join(lst):
def native_set_join(lst):
l = lst.unique().tolist()
d = int(len(l)/2)
if d == 0:
d = 1
d = len(l)
if d > 500:
d = 500
r = [str(i) for i in l]
r =r[:d]
return ','.join(r)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment