Discussion:
[SCM] UNNAMED PROJECT branch, master, updated. e30f90da546b51fbf245860ffa22afcd0d23afdb
Michal Cihar
2011-12-13 12:43:53 UTC
Permalink
The following commit has been merged in the master branch:
commit e30f90da546b51fbf245860ffa22afcd0d23afdb
Author: Michal Čihař <***@cihar.com>
Date: Tue Dec 13 13:43:19 2011 +0100

Fold phones link

diff --git a/phonedb/models.py b/phonedb/models.py
index 9793923..0c0b8ec 100644
--- a/phonedb/models.py
+++ b/phonedb/models.py
@@ -133,6 +133,8 @@ class Phone(models.Model):
name = name[:-1] + '_classic'
elif name[-1:] == 's' and name[-2:-1] in '0123456789':
name = name[:-1] + '_slide'
+ elif name[-1:] == 'f' and name[-2:-1] in '0123456789':
+ name = name[:-1] + '_fold'
result.append({
'url': 'http://www.developer.nokia.com/Devices/Device_specifications/%s/' % name,
'name': 'Nokia Developer',
--
UNNAMED PROJECT
Loading...