rel="diff-9af72b7e156d2dc7090c1bae9f580a338c3a32c5L6">6 7
 from TimeConvert import TimeConvert as tc
7 8
 
8 9
 from group.models import GroupPhotoInfo
9
-from pai2.basemodels import CreateUpdateMixin
10 10
 
11 11
 
12
-class OrderInfo(CreateUpdateMixin):
12
+class OrderInfo(BaseModelMixin):
13 13
     NOMARK = 0
14 14
     ORIGIN = 1
15 15
 

+ 4 - 4
photo/models.py

@@ -2,12 +2,12 @@
2 2
 
3 3
 from django.db import models
4 4
 from django.utils.translation import ugettext_lazy as _
5
+from models_ext import BaseModelMixin
5 6
 
6
-from pai2.basemodels import CreateUpdateMixin
7 7
 from utils.qiniucdn import qiniu_file_url
8 8
 
9 9
 
10
-class UUIDInfo(CreateUpdateMixin):
10
+class UUIDInfo(BaseModelMixin):
11 11
     uuid = models.CharField(_(u'uuid'), max_length=22, blank=True, null=True, help_text=u'唯一标识', db_index=True, unique=True)
12 12
     lensman_id = models.CharField(_(u'lensman_id'), max_length=255, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True)
13 13
 
@@ -27,7 +27,7 @@ class UUIDInfo(CreateUpdateMixin):
27 27
         }
28 28
 
29 29
 
30
-class PhotoUUIDInfo(CreateUpdateMixin):
30
+class PhotoUUIDInfo(BaseModelMixin):
31 31
     photo_md5 = models.CharField(_(u'photo_md5'), max_length=255, blank=True, null=True, help_text=u'照片唯一标识', db_index=True, unique=True)
32 32
 
33 33
     photo_path = models.CharField(_(u'photo_path'), max_length=255, blank=True, null=True, help_text=u'照片路径')
@@ -54,7 +54,7 @@ class PhotoUUIDInfo(CreateUpdateMixin):
54 54
         return u'{0.pk}'.format(self)
55 55
 
56 56
 
57
-class PhotosInfo(CreateUpdateMixin):
57
+class PhotosInfo(BaseModelMixin):
58 58
     lensman_id = models.CharField(_(u'lensman_id'), max_length=255, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True)
59 59
     session_id = models.CharField(_(u'session_id'), max_length=255, blank=True, null=True, help_text=u'照片组唯一标识', db_index=True)
60 60
     photo_id = models.CharField(_(u'photo_id'), max_length=255, blank=True, null=True, help_text=u'照片唯一标识', db_index=True)

kodo - Gogs: Go Git Service

No Description

refresh_views.py 517B

    # -*- coding: utf-8 -*- from __future__ import division import json from django_logit import logit from django_response import response from account.models import UserInfo from utils.redis.connect import r from utils.redis.rkeys import MEMBERCARD_USERINFO_LIST @logit def phone(request): users = UserInfo.objects.filter(phone='').exclude(memberusercardcode='') p = r.pipeline() for u in users: p.rpush(MEMBERCARD_USERINFO_LIST, json.dumps(u.cardata)) p.execute() return response()
adminSystem - Gogs: Go Git Service

暫無描述

FFIB: 11e3a9652a first 7 年之前
..
README.md 11e3a9652a first 7 年之前
index.js 11e3a9652a first 7 年之前
package.json 11e3a9652a first 7 年之前

README.md

NPM version Build Status

Regular expression for matching HTML comments

Install

$ npm install --save html-comment-regex

Usage

var htmlCommentRegex = require('html-comment-regex');

htmlCommentRegex.test('<!DOCTYPE html><!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> true

htmlCommentRegex.test('<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> false

License

MIT © Steve Mao