Skip to content

Commit 863e009

Browse files
committed
Correct iPhone W950 Titan II Omnia 7 and Optimus Pad memory
1 parent 9a569d8 commit 863e009

16 files changed

Lines changed: 40 additions & 25 deletions

‎app/validate.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ def validate() -> list[str]:
325325
_check_slug(fname, rec.get("slug"), errors)
326326
if "release_date" in rec:
327327
_check_date(fname, rec["release_date"], errors)
328-
_check_range(fname, "ram_gb", rec.get("ram_gb"), 1, 64, errors)
328+
_check_range(fname, "ram_gb", rec.get("ram_gb"), 0.016, 64, errors)
329329
_check_range(fname, "battery_mah", rec.get("battery_mah"), 500, 12000, errors)
330-
_check_range(fname, "weight_g", rec.get("weight_g"), 50, 500, errors)
330+
_check_range(fname, "weight_g", rec.get("weight_g"), 50, 1500, errors)
331331
if "msrp_usd" in rec:
332332
_check_range(fname, "msrp_usd", rec["msrp_usd"], 50, 5000, errors)
333333
if rec.get("brand") not in brand_slugs:

‎data/smartphone/apple/2007/iphone.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
"brand": "apple",
66
"soc": "412-mhz-arm-11",
77
"release_date": "2007-01-01",
8-
"ram_gb": 16,
8+
"ram_gb": 0.125,
99
"battery_mah": 1500,
1010
"weight_g": 135.0,
1111
"os": "iOS",
1212
"verified": false,
1313
"source_urls": [
14+
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
1415
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
1516
],
1617
"storage_options_gb": [

‎data/smartphone/apple/2007/iphone/apple-iphone-aitoolbuzz-789-16gb-16gb-2g.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@
44
"name": "Apple iPhone",
55
"brand": "apple",
66
"release_date": "2007-01-01",
7-
"ram_gb": 16,
7+
"ram_gb": 0.125,
88
"battery_mah": 1400,
99
"weight_g": 135.0,
1010
"os": "iOS, up to iOS 3.1.3",
1111
"verified": false,
1212
"source_urls": [
13+
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
1314
"https://aitoolbuzz.com/mobiles/apple-iphone"
1415
],
1516
"variant": {
1617
"region": "global",
1718
"source_dataset": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com",
1819
"source_key": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com:789",
1920
"memory": {
20-
"ram_gb": 16,
21+
"ram_gb": 0.125,
2122
"storage_gb": 16
2223
},
2324
"network": {

‎data/smartphone/apple/2007/iphone/apple-iphone-allphones-2566-16gb-16gb-2g.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@
44
"name": "Apple iPhone",
55
"brand": "apple",
66
"release_date": "2007-01-01",
7-
"ram_gb": 16,
7+
"ram_gb": 0.125,
88
"battery_mah": 1400,
99
"weight_g": 135.0,
1010
"os": "iOS, upgradable to iOS 3.1.3",
1111
"verified": false,
1212
"source_urls": [
13+
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
1314
"https://www.kaggle.com/datasets/madajaswanth/phone-dataset-8461-phones"
1415
],
1516
"variant": {
1617
"region": "global",
1718
"source_dataset": "madajaswanth/phone-dataset-8461-phones",
1819
"source_key": "madajaswanth/phone-dataset-8461-phones:2566",
1920
"memory": {
20-
"ram_gb": 16,
21+
"ram_gb": 0.125,
2122
"storage_gb": 16
2223
},
2324
"network": {

‎data/smartphone/apple/2007/iphone/apple-iphone-beridzeg45-6380-16gb.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"name": "Apple iPhone",
55
"brand": "apple",
66
"release_date": "2007-01-01",
7-
"ram_gb": 16,
7+
"ram_gb": 0.125,
88
"battery_mah": 1400,
99
"weight_g": 135.0,
1010
"os": "iOS",
1111
"verified": true,
1212
"source_urls": [
13+
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
1314
"https://www.gsmarena.com/apple_iphone-1827.php"
1415
],
1516
"variant": {

‎data/smartphone/htc/2012/titan-ii.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
"brand": "htc",
66
"soc": "qualcomm-snapdragon-s2",
77
"release_date": "2012-01-01",
8-
"ram_gb": 16,
8+
"ram_gb": 0.5,
99
"battery_mah": 1730,
1010
"weight_g": 147.0,
1111
"os": "Windows Mobile",
1212
"verified": false,
1313
"source_urls": [
14+
"https://en.wikipedia.org/wiki/HTC_Titan_II",
1415
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
1516
],
1617
"storage_options_gb": [

‎data/smartphone/htc/2012/titan-ii/htc-titan-ii-aitoolbuzz-3366-16gb-16gb-4g-lte.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@
44
"name": "HTC Titan II",
55
"brand": "htc",
66
"release_date": "2012-01-01",
7-
"ram_gb": 16,
7+
"ram_gb": 0.5,
88
"battery_mah": 1730,
99
"weight_g": 147.0,
1010
"os": "Microsoft Windows Phone 7.5 Mango",
1111
"verified": false,
1212
"source_urls": [
13+
"https://en.wikipedia.org/wiki/HTC_Titan_II",
1314
"https://aitoolbuzz.com/mobiles/htc-titan-ii"
1415
],
1516
"variant": {
1617
"region": "global",
1718
"source_dataset": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com",
1819
"source_key": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com:3366",
1920
"memory": {
20-
"ram_gb": 16,
21+
"ram_gb": 0.5,
2122
"storage_gb": 16
2223
},
2324
"network": {

‎data/smartphone/htc/2012/titan-ii/htc-titan-ii-allphones-3076-16gb-16gb-4g-lte.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@
44
"name": "HTC Titan II",
55
"brand": "htc",
66
"release_date": "2012-04-08",
7-
"ram_gb": 16,
7+
"ram_gb": 0.5,
88
"battery_mah": 1730,
99
"weight_g": 147.0,
1010
"os": "Microsoft Windows Phone 7.5 Mango",
1111
"verified": false,
1212
"source_urls": [
13+
"https://en.wikipedia.org/wiki/HTC_Titan_II",
1314
"https://www.kaggle.com/datasets/madajaswanth/phone-dataset-8461-phones"
1415
],
1516
"variant": {
1617
"region": "global",
1718
"source_dataset": "madajaswanth/phone-dataset-8461-phones",
1819
"source_key": "madajaswanth/phone-dataset-8461-phones:3076",
1920
"memory": {
20-
"ram_gb": 16,
21+
"ram_gb": 0.5,
2122
"storage_gb": 16
2223
},
2324
"network": {

‎data/smartphone/htc/2012/titan-ii/htc-titan-ii-beridzeg45-6837-16gb.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"name": "HTC Titan II",
55
"brand": "htc",
66
"release_date": "2012-04-08",
7-
"ram_gb": 16,
7+
"ram_gb": 0.5,
88
"battery_mah": 1730,
99
"weight_g": 147.0,
1010
"os": "Windows Mobile",
1111
"verified": true,
1212
"source_urls": [
13+
"https://en.wikipedia.org/wiki/HTC_Titan_II",
1314
"https://www.gsmarena.com/htc_titan_ii-4411.php"
1415
],
1516
"variant": {

‎data/smartphone/lg/2011/optimus-pad-v900.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
"brand": "lg",
66
"soc": "nvidia-tegra-2-t20",
77
"release_date": "2011-01-01",
8-
"ram_gb": 32,
8+
"ram_gb": 1,
99
"battery_mah": 6400,
10-
"weight_g": 150.0,
10+
"weight_g": 630.0,
1111
"os": "Android",
1212
"verified": false,
1313
"source_urls": [
14+
"https://en.wikipedia.org/wiki/LG_Optimus_Pad",
1415
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
1516
],
1617
"storage_options_gb": [

0 commit comments

Comments
 (0)