358235737

Results 13 comments of 358235737

this : Alert.objects(status='0', subsys=subsys, timestamp__get=self.start_time, timestamp__lte=self.end_time)[:num].updated(status="2") I had try,but not valid ,it is also updated all [:num] is invalid in this way

re = Alert.objects(Q(status='0') & Q(subsys=subsys) & ( Q(timestamp__gte=self.start_time) & Q(timestamp__lte=self.end_time)))[:num] logger.info("re.count() :%s" %re.count()) that [:num] or limit(num) are not invalid why ? that query result are all? why ?

I used your code as https://github.com/BurkovBA/django-rest-framework-mongoengine-example/tree/master/project @BurkovBA

and with this code : re = Alert.objects[:2] also return all ?

https://github.com/hmarr/mongoengine/issues/166 something else ?

OK, if you run this issues and resolved ,please tell me ,thank you ~~!

so if i want to get the response to serializabled ,update the upstream.conf file when other time i reload nginx,that the override upstream.conf can be availabe,if i lost ip_hash,keepalive .....

waiting ,waiting ,waiting 场景 我在做一个nginx upstream 动态路由的功能,支持持久化,我的设想是通过rest方式直接更新nginx 内存,然后通过rest方式获取到所有upstream信息,然后回写文件保存,确保nginx reload后,之前添加的upstream,server应用都是有效的。 ngx_http_dyups_module-0.2.9这个模块的rest方式,比如"/detail"获取到的ngx_sprintf信息里面不包含upstream下面的ip_hash,keepalive等信息,而我想要打印出全量的upstream信息。这样子,我能直接回写文件。